<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container{
            display: flex;
            width: 100%;
            justify-content: space-between;
            padding:5px;
        }
        .left{
            display: flex;
        }
        .right{
            display: flex;
        }
        .left_item{
            width: 60px;
            height: 30px;
            line-height: 30px;
            text-align: center;
        }
        .right_item{
            width: 80px;
            height: 30px;
            line-height: 30px;
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="left">
            <div class="left_item">{{left_navs[0]}}</div>
            <div class="left_item">{{left_navs[1]}}</div>
            <div class="left_item">{{left_navs[2]}}</div>
            <div class="left_item">{{left_navs[3]}}</div>
            <div class="left_item">{{left_navs[4]}}</div>
            <div class="left_item">{{left_navs[5]}}</div>
            <div class="left_item">{{left_navs[6]}}</div>
        </div>
        <div class="right">
            <div class="right_item">{{right_navs[0]}}</div>
            <div class="right_item">{{right_navs[1]}}</div>
            <div class="right_item">{{right_navs[2]}}</div>
        </div>
    </div>
    <!-- 1. 引入 vue 的框架，vue 2.x -->
    <!-- <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> -->
    <script src="./vue.js"></script>
    <!-- 2. 使用Vue创建一个实例 -->
    <script>
        console.log(Vue);// 引入一个 Vue 对象
        /* Vue 模板 语法 {{变量}} */
        let vm = new Vue({
            el:".container",// el 是一个元素选择器，表示的是现在Vue实例作用的元素
            data:{
                msg:"上课啦！！！",
                number:1,
                obj:{name:"TT"},
                arr:[1,2,3],
                left_navs:[
                "新闻",
                "hao123",
                "地图",
                "视频",
                "贴吧",
                "学术",
                "更多"
                ],
                right_navs:[
                '抗击肺炎',
                '设置',
                '登录',
                ]
            }
        })
    </script>
</body>
</html>